Improve implementations of some Eshell output filter functions
authorJim Porter <jporterbugs@gmail.com>
Tue, 4 Jun 2024 05:06:49 +0000 (22:06 -0700)
committerJim Porter <jporterbugs@gmail.com>
Sat, 8 Jun 2024 19:29:29 +0000 (12:29 -0700)
commit15f515c7a37f29117ff123821265a760ff0d040d
treeb8c21f5d4d9d71031dfd4846a8334408ccb04b46
parent2fac71255f2e216481f956ad318378cdfddb9402
Improve implementations of some Eshell output filter functions

* lisp/eshell/esh-mode.el (eshell-postoutput-scroll-to-bottom): Use
'get-buffer-window-list' for simplicity.
(eshell-handle-control-codes): Use 're-search-forward'; this way is much
faster.

* test/lisp/eshell/esh-mode-tests.el: New file.
lisp/eshell/esh-mode.el
test/lisp/eshell/esh-mode-tests.el [new file with mode: 0644]